package datastructure.linkedlist.cricle.sigle;

/**
 * @author cyt
 * @create 2020-12-05 16:40
 */

public class CriCleLinkedListTest {
    public static void main(String[] args) {
        CyCriCleLinkedList<Integer> linkedList = new CyCriCleLinkedList();
        linkedList.add(11);
        linkedList.add(22);
        linkedList.add(33);
        linkedList.add(44);

        linkedList.add(0, 55);
        linkedList.add(linkedList.size(), 2555);
        System.out.println(linkedList);
        linkedList.remove(0);
        linkedList.remove(3);
        linkedList.remove(linkedList.size() - 1);
        System.out.println(linkedList);
    }
}
